﻿using System;
using System.Collections.Generic;
using System.Web.UI;

namespace Library.WebControls.SimplePaging {
	internal class ReadOnlyControlCollection : ControlCollection {
		public ReadOnlyControlCollection(Control owner, IEnumerable<Control> oneChild)
				: base(owner) {
				foreach (var control in oneChild) {
					base.Add(control);
				}

			}

			public override void Add(Control child) {
				throw new NotSupportedException();
			}


			/// <devdoc> 
			///    <para>[To be supplied.]</para>
			/// </devdoc> 
			public override void AddAt(int index, Control child) {
				throw new NotSupportedException();
			}
	}
}
